package com.gl.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gl.entity.EduCourse;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gl.entity.course.CoursePublish;

import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author testjava
 * @since 2020-12-14
 */
public interface EduCourseService extends IService<EduCourse> {
    //分页按条件查询课程
    Map<String,Object> pageCourse(Page<EduCourse> page, EduCourse course);
    //根据课程id查询课程详情
    Map<String, Object> detailByCourseId(String courseId);
    //添加课程
    String saveCourse(CoursePublish coursePublish);
    //课程发布时根据课程id查询最终信息
    CoursePublish getFinalInfoByCourseId(String id);
}
